package android.bkav.testing.activity;

import android.app.Activity;
import android.os.Bundle;
import android.text.Html;
import android.widget.LinearLayout;
import android.widget.TextView;

public class IntroductionTabActivity extends Activity {
	
	int FILL_PARENT = -1;
	int WRAP_CONTENT = -2;
	
	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		
		LinearLayout linearLayout = new LinearLayout(getBaseContext());
		LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(FILL_PARENT, WRAP_CONTENT);
		params.topMargin = 30;
		params.leftMargin = 25;
		TextView textView = new TextView(this);
		String introduction = "- My Name: <b><font color=#ff0000>Nguyen Van Dang</font></b><br>- Birthday: <b><font color=#ff0000>07/05/1988</b></font><br>- Company: <b><font color=#ff0000>BKAV</font></b>";
		textView.setText(Html.fromHtml(introduction));
		
		linearLayout.addView(textView, params);
		setContentView(linearLayout);;
	}
}
